import sympy

x = sympy.Symbol('x')
a = 0
b = 2
c = 1
f = x

integral_a_c = sympy.integrate(f, (x, a, c))
integral_c_b = sympy.integrate(f, (x, c, b))
integral_a_b = sympy.integrate(f, (x, a, b))

print("∫ from {} to {} of {} dx = {}".format(a, c, f, integral_a_c))
print("∫ from {} to {} of {} dx = {}".format(c, b, f, integral_c_b))
print("∫ from {} to {} of {} dx = {}".format(a, b, f, integral_a_b))